package cn.com.huzo.model.entities.tech;

import huzofw.model.entities.BaseEntity;
import huzofw.model.entities.IAggregateRoot;
import java.io.Serializable;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;

/**
 * EBOM图片实体类
 *
 * @author 吴旭
 */
public class ProductBomLinesPictureEntity extends BaseEntity implements Serializable, IAggregateRoot {

    private static final long serialVersionUID = 2506373405198576771L;
    private String LinesId;
    private Long HeaderId;
    private String ImageUrl;           // 图片URL
    private String ImageFileDir;       // 图片目录名
    private String ImageFileName;      // 图片名

    public String getLinesId() {
        return LinesId;
    }

    public Long getHeaderId() {
        return HeaderId;
    }

    public String getImageUrl() {
        return ImageUrl;
    }

    public String getImageFileDir() {
        return ImageFileDir;
    }

    public String getImageFileName() {
        return ImageFileName;
    }

    public void setLinesId(String LinesId) {
        this.LinesId = LinesId;
    }

    public void setHeaderId(Long HeaderId) {
        this.HeaderId = HeaderId;
    }

    public void setImageUrl(String ImageUrl) {
        this.ImageUrl = ImageUrl;
    }

    public void setImageFileDir(String ImageFileDir) {
        this.ImageFileDir = ImageFileDir;
    }

    public void setImageFileName(String ImageFileName) {
        this.ImageFileName = ImageFileName;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (!(o instanceof ProductBomLinesPictureEntity)) {
            return false;
        }

        final ProductBomLinesPictureEntity that = (ProductBomLinesPictureEntity) o;

        return new EqualsBuilder()
                .append(this.getLinesId(), that.getLinesId())
                .isEquals();
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public int hashCode() {
        int result = 17;
        result = 31 * result + this.getLinesId().hashCode();

        return result;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this);
    }
}
